/*
 * Powered By  huangzl QQ: 272950754
 * Web Site: http://www.hehenian.com
 * Since 2008 - 2018
 */

package com.mingsoft.cms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.mingsoft.base.dao.IBaseDao;
import com.mingsoft.cms.entity.ArticleEntity;
import com.mingsoft.cms.entity.InsuranceEntity;
import com.mingsoft.cms.entity.InsurancePriceEntity;
import com.mingsoft.cms.entity.InsurancePropertyEntity;
@Component("insuranceDao")
public interface IInsuranceDao extends IBaseDao {

	
	@SuppressWarnings("rawtypes")
	int getCountByColumnId( @Param("basicCategoryIds") int[] basicCategoryIds,
			@Param("flag") String flag);
	
	/**
	 * 保存保险价格
	 * @param ipe
	 */
	void savePrice(InsurancePriceEntity ipe);
	/**
	 * 保存保险价格属性
	 * @param insPe
	 */
	void saveProperty(InsurancePropertyEntity insPe);
	
	List<InsuranceEntity> queryByCategory(@Param("webId") int webId, @Param("basicCategoryIds") int[] basicCategoryIds,
			@Param("flag") String flag, @Param("noFlag") String noFlag, @Param("orderBy") String orderBy,
			@Param("order") boolean order, @Param("article") InsuranceEntity article);


	void updateStatus(@Param("ids") int[] ids,@Param("status") int status);

}
